#pragma once

#include "DlgSysHardCfg.h"
#include "DlgSysSystemView.h"
#include "DlgSysFileSaveCfg.h"
#include "DlgSysProductInfo.h"
#include "DlgSysStandandCfg.h"
#include "afxcmn.h"


// CDlgSystemParam dialog

#define OPTIONCOUNT 5

class CDlgSystemParam : public CDialog
{
	DECLARE_DYNAMIC(CDlgSystemParam)

public:
	CDlgSystemParam(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgSystemParam();

// Dialog Data
	enum { IDD = IDD_System_Param };


public:
	CDlgSysHardCfg		*m_pDlgSysHardCfg;
	CDlgSysSystemView	*m_pDlgSysSystemView;
	CDlgSysFileSaveCfg	*m_pDlgSysFileSaveCfg;
	CDlgSysProductInfo	*m_pDlgSysProductInfo;
	CDlgSysStandandCfg	*m_pDlgSysStandandCfg;

public:
	int m_nType;

public:
	CString m_strOptionText[OPTIONCOUNT];
	CString m_strSelect;

public:
	void ShowOption(CString strSel);
	void SetModified(BOOL bModified);

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	virtual BOOL DestroyWindow();
	afx_msg void OnTvnSelchangedTreeSysparam(NMHDR *pNMHDR, LRESULT *pResult);
	CTreeCtrl m_TreeCtrl;
	afx_msg void OnBnClickedButtonApply();
public:
	afx_msg void OnBnClickedCancel();
	afx_msg void OnBnClickedOk();
};
